package ControlLayer;

import java.util.*;
import ModelLayer.*;
public class DvdCtr
{
    private DvdContainer dvdContainer;

    public DvdCtr()
    {
        dvdContainer = DvdContainer.getInstance();
    }
    
    public DVD createDvd(String title,int barcode,int serialNumber,String date)
   {
       Copy c= new Copy(serialNumber, date);
       DVD dvd = new DVD(title, barcode, c);
       dvdContainer.addDVD(dvd);
       return dvd;
    }

   
}
